#include <stdio.h>

int main(){
    int a,b,c,d,e,n;
    for(e=1;;e++){
        if((5*e+1)%4==0){
            d=(5*e+1)/4;
            if((5*d+1)%4==0){
                c=(5*d+1)/4;
                if((5*c+1)%4==0){
                    b=(5*c+1)/4;
                    if((5*b+1)%4==0){
                        a=(5*b+1)/4;
                        break;
                    }
                }
            }
        }
    }
    n=5*a+1;
    printf("E: %d,D: %d,C: %d,B: %d,A: %d,total: %d\n",
        4*d,4*c,4*b,4*a,n,n);
}
